<?php

namespace common\validate;

class CosMedia extends BaseValidate
{
    // 验证规则
    protected $rule = [];

    // CreateMedia 创建一个媒体资源
    public function sceneCreateMedia()
    {
        return $this->append("object", "require")
            ->append("file_name", "require")
            ->append("cos_key", "require");
    }

    // CreateMedia 创建一个媒体资源
    public function sceneCreate()
    {
        return $this->append("data.object", "require")
            ->append("data.cos_key", "require")
            ->append("data.file_name", "require");
    }
}
